Interface CryptoHandler


public interface CryptoHandler
This interface represents the CryptoHandler to encrypt and decrypt the protocol for secure communication.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decryptWithPrivateKey(byte[] pCipherData)
    This method decrypts data using private key
    byte[]
    encryptWithPrivateKey(byte[] pPlainData)
    This method encrypts data using private key
    Gets the Key ID for the implemented Handler
  • Method Details

    • encryptWithPrivateKey

      byte[] encryptWithPrivateKey(byte[] pPlainData) throws WSClientException
      This method encrypts data using private key
      Parameters:
      plainData - - The data byte array to be encrypted
      Returns:
      encrypted data
      Throws:
      WSClientException
    • decryptWithPrivateKey

      byte[] decryptWithPrivateKey(byte[] pCipherData) throws WSClientException
      This method decrypts data using private key
      Parameters:
      pCipherData - - The data byte array to be decrypted
      Returns:
      decrypted data
      Throws:
      WSClientException
    • getKeyID

      String getKeyID()
      Gets the Key ID for the implemented Handler
      Returns:
      key id